package com.example.tliasmanagement.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
//@Scope("prototype")
@RestController
@RequestMapping("/conf")
public class ConfController {

    @Value("${conf.filename}")
    private String filename;

    private int i = 0;

    @GetMapping
    public String conf(){
        return filename;
    }

    @GetMapping("/myself")
    public String myslef(){
        return this.toString();
    }

    @GetMapping("/add")
    public String add(){
        return ""+(i++);
    }
}
